package filesystem;

import javax.swing.tree.DefaultMutableTreeNode;

public class FileNode extends DefaultMutableTreeNode {
    private String name;
    private boolean isDirectory;

    public FileNode(String name, boolean isDirectory) {
        super(name);
        this.name = name;
        this.isDirectory = isDirectory;
    }

    public boolean isDirectory() {
        return isDirectory;
    }

    public String getName() {
        return name;
    }
}
